package com.skynet.supervision.aop.uac;

import com.google.common.collect.Lists;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.convert.DurationUnit;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.List;

/**
 * @author xuchao
 * @date 2023-03-08 20:17
 */
@Data
@Component
@ConfigurationProperties(prefix = "skynet.uac")
public class UACClientProperties {
    /**
     * 是否开启用户登录
     */
    private Boolean enable = false;
    /**
     * 是否开启权限校验
     */
    private Boolean enableAcl = false;
    /**
     * 不需要登录的路径
     */
    private List<String> excludePathPatterns = Lists.newArrayList();
}
